public class ClientClass{
    public static void main(String[] args){
        MyFruit fru1=new Apple();
        MyFruit fru2=new Banana();

        MyFruitStore mfs1=MyFruitStore.Getfruitstore();
        MyFruitStore.Add(1,fru1);
        MyFruitStore.Add(2,fru2);
        MyFruitStore.Add(3,new Apple());
        MyFruitStore.Add(4,new Banana());
        MyFruitStore mfs2=MyFruitStore.Getfruitstore();
        MyFruit fru=(MyFruit)mfs1.Get(3);
        fru.Display();
        System.out.println("mfsl:"+mfs.toString());
        System.out.println("mfs2:"+mfs2.toString());
    }
}